package com.jojava.app.controller;

import java.util.Map;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.jojava.common.config.JoConfig;

@RestController
public class HomeController {
    /**
     * @param model
     * @return
     */
    @RequestMapping("/main")
    public String main(Map<String, Object> model) {
        System.out.print("对号入座，容易实现！");
        JoConfig joConfig = new JoConfig();
        joConfig.setName("Duihao JoJava");
        return joConfig.getName() + " - 对号入座，容易实现！";
    }
}
